 package com.lj.mcore.entity;

  import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;
 import java.util.ArrayList;
 import java.util.List;


 @Entity
 @Table(name="shopping_trans_area")
 public class TransArea extends IdEntity
 {
   private String areaName;
 
   @OneToMany(mappedBy="parent", cascade={CascadeType.REMOVE})
   private List<TransArea> childs = new ArrayList();
 
   @ManyToOne(fetch=FetchType.LAZY)
   private TransArea parent;
   private int sequence;
   private int level;
 
   public String getAreaName() { return this.areaName; }
 
   public void setAreaName(String areaName)
   {
     this.areaName = areaName;
   }
 
   public List<TransArea> getChilds() {
     return this.childs;
   }
 
   public void setChilds(List<TransArea> childs) {
     this.childs = childs;
   }
 
   public TransArea getParent() {
     return this.parent;
   }
 
   public void setParent(TransArea parent) {
     this.parent = parent;
   }
 
   public int getSequence() {
     return this.sequence;
   }
 
   public void setSequence(int sequence) {
     this.sequence = sequence;
   }
 
   public int getLevel() {
     return this.level;
   }
 
   public void setLevel(int level) {
     this.level = level;
   }
 }



 
 